Solved: Need some help with IF statement

您所在的位置:网站首页 mathcad add line Solved: Need some help with IF statement

Solved: Need some help with IF statement

2023-08-11 10:02| 来源: 网络整理| 查看: 265

Hello,

For a Mathcad calculation I am trying to make use of an IF statement in Mathcad 15. At the top of the sheet I ask the user of the sheet whether they want calculation "A" or "B" through a List Box Control. I have set name "A" to correspond with value "0", and name "B" to correspond with value "1". This value is then stored as follows:

Snip1.png

Then further down in the Mathcad sheet, I want to make an IF program that calculates a function in one of two ways, depending on the value of Storage. I tried to make it like this, but that did not work:

Snip2.png

Does any of you have tips for me on how to do this? I know that what I am currently doing makes no sense in Mathcad language, but I think it best illustrates my problem.

Thanks in advance!

Tim

Solved! Go to Solution.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3